package com.ljx.filter;


import javax.servlet.*;
import java.io.IOException;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/11/16 15:34
 * @Version 1.0
 */
public class MyFilter implements Filter {

	@Override
	public void init(FilterConfig filterConfig) throws ServletException {

	}

	@Override
	public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
		// 所有资源都要经过过滤器
		System.out.println("这是过滤器");
		// 释放过滤器(所有资源都释放掉)
		filterChain.doFilter(servletRequest,servletResponse);


	}
}
